FROM eclipse-temurin:17-jdk-jammy

WORKDIR /admin

COPY web-admin-1.0-SNAPSHOT.jar admin.jar

EXPOSE 8080

CMD ["java", \
     "-XX:+UseContainerSupport", \
     "-XX:InitialRAMPercentage=50.0", \
     "-XX:MaxRAMPercentage=75.0", \
     "-XX:+UseG1GC", \
     "-XX:MaxGCPauseMillis=200", \
     "-Xss512k", \
     "-Djava.security.egd=file:/dev/./urandom", \
     "-jar", "admin.jar"]
